package com.wsd.bean;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private Integer userid;
	private String UName;
	private String username;
	private String userpass;
	private String email;
	private String mobile;
	private Integer userLevel;
	private String address;
	private String company;
	private Timestamp registerTime;
	private String comment;
	private Set messages = new HashSet(0);
	private Set productOrders = new HashSet(0);
	private Boolean state;
    private String phone;//座机
	// Constructors

	/** default constructor */
	public Users() {
	}

	/** minimal constructor */
	public Users(String UName, String username, String userpass, String email,
			String mobile, Integer userLevel, Timestamp registerTime) {
		this.UName = UName;
		this.username = username;
		this.userpass = userpass;
		this.email = email;
		this.mobile = mobile;
		this.userLevel = userLevel;
		this.registerTime = registerTime;
	}

	/** full constructor */
	public Users(String UName, String username, String userpass, String email,
			String mobile, Integer userLevel, String address, String company,
			Timestamp registerTime, String comment, Set messages,
			Set productOrders,Boolean state) {
		this.UName = UName;
		this.username = username;
		this.userpass = userpass;
		this.email = email;
		this.mobile = mobile;
		this.userLevel = userLevel;
		this.address = address;
		this.company = company;
		this.registerTime = registerTime;
		this.comment = comment;
		this.messages = messages;
		this.productOrders = productOrders;
		this.state = state;
	}

	// Property accessors

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUName() {
		return this.UName;
	}

	public void setUName(String UName) {
		this.UName = UName;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUserpass() {
		return this.userpass;
	}

	public void setUserpass(String userpass) {
		this.userpass = userpass;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getUserLevel() {
		return this.userLevel;
	}

	public void setUserLevel(Integer userLevel) {
		this.userLevel = userLevel;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Timestamp getRegisterTime() {
		return this.registerTime;
	}

	public void setRegisterTime(Timestamp registerTime) {
		this.registerTime = registerTime;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

	public Set getProductOrders() {
		return this.productOrders;
	}

	public void setProductOrders(Set productOrders) {
		this.productOrders = productOrders;
	}

	public Boolean isState() {
		return state;
	}

	public void setState(Boolean state) {
		this.state = state;
	}

	public Boolean getState(){
		return state;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	 
	

}